/*
 * @Author: zulezhe
 * @Date: 2021-11-18 18:00:24
 * @LastEditors: zulezhe
 * @LastEditTime: 2022-01-20 09:57:00
 * @Path: https://gitee.com/zulezhe/
 * @Description:
 */
import request from '@/utils/request.js'
import store from '@/store/index'

/**
 * 获取菜单数据
 * @param {object} data 参数
 * @returns {promise}
 */
export function list(data) {
    return request({
        url: '/sysRoleMenu/userMenu',
        method: 'get',
        data,
        headers: {
            isToken: true
          },
    })
}
/**
 * 获取菜单数据
 * @param {object} data 参数
 * @returns {promise}
 */
 export function getOneLevel(data) {
    return request({
        url: '/sysRoleMenu/userMenu',
        method: 'get',
        data,
        headers: {
            isToken: true
          },
    })
}
/**
 * 获取菜单数据
 * @param {object} data 参数
 * @returns {promise}
 */
 export function getChildrenMenus(data) {
    return request({
        url: '/getChildrenMenus',
        method: 'get',
        data,
        headers: {
            isToken: true
          },
    })
}
/**
 * 供地管理--可供土地--提交信息(批而未供详情 2)
 * @param {*} data
 * @returns
 */
export function postPEWGSupply(data) {
    return request({
        url: '/industry/bsNoSupply/manageNoSupplyInfo',
        method: 'post',
        data,
    })
}
/**
 * 首页数据
 * @param {*}
 * @returns
 */
export function getHomeData(params) {
    return request({
        url: '/bsIndex/indexListByYear',
        method: 'get',
        data: params,
    })
}
/**
 * 企业评价图表数据
 * @param {*}
 * @returns
 */
export function getAppraiseData(params) {
    return request({
        url: '/statistics/mjxyStatistics',
        method: 'get',
        data: params,
    })
}
/**
 * 获取字典信息
 * @param {*}
 * @returns
 */
export function initCatalogInfo(params) {
    return request({
        url: '/system/initCatalogInfo',
        method: 'get',
        data: params,
    })
}
/**
 * 获取企业详情
 * @param {*}
 * @returns
 */
export function getCompanyInfo(params) {
    return request({
        url: '/bsCompany/getCompanyInfo',
        method: 'get',
        data: params,
    })
}
/**
 * 获取分类字典
 * @param {*}
 * @returns
 */
export function querySysKeyListById(params) {
    return request({
        url: '/system/querySysKeyListById',
        method: 'get',
        data: params,
    })
}
